package com.nervenets;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 应用启动类
 *
 * @author Administrator
 */
@ComponentScan(basePackages = "com.nervenets.web.*")
@SpringBootApplication
@EnableAutoConfiguration
@EntityScan(basePackages = "com.nervenets.web.*")
@EnableJpaRepositories(basePackages = "com.nervenets.web.*")
public class Application implements CommandLineRunner {

    /**
     * BOOT入口方法
     *
     * @param args 入口参数
     */
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Override
    public void run(String... strings) throws Exception {

    }
}
